home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / borland / svgabg52.zip / MAKEBGI.BAT < prev    next >
DOS Batch File  |  1993-10-04  |  901b  |  40 lines

  1. echo off
  2. SET BGIVER=2
  3. if "%1" == "" goto SelectType
  4. if "%3" == "" goto setBGIVer
  5. set BGIVER=
  6. set BGIVER=%3
  7. :setBGIVer
  8. if %1 == t goto makeTweak
  9. if %1 == s goto makeSuperVGA
  10. goto SelectType
  11.  
  12. :makeSuperVGA
  13. tasm /dBGIVERSION=%BGIVER% SVGA%2.asm,SVGA%2.obj ;
  14. tlink SVGA%2.obj
  15. exe2bin SVGA%2.exe SVGA%2.bin
  16. bgihdr SVGA%2 SVGA%2.bin SVGA%2.bgi SVGA%2.map
  17. del SVGA%2.exe
  18. del SVGA%2.obj
  19. del SVGA%2.bin
  20. del SVGA%2.map
  21. goto Exit
  22.  
  23. :makeTweak
  24. tasm /dBGIVERSION=%BGIVER% TWK%2.asm,TWK%2.obj ;
  25. tlink TWK%2.obj
  26. exe2bin TWK%2.exe TWK%2.bin
  27. bgihdr TWK%2 TWK%2.bin TWK%2.bgi TWK%2.map
  28. del TWK%2.exe
  29. del TWK%2.obj
  30. del TWK%2.bin
  31. del TWK%2.map
  32. goto Exit
  33.  
  34. :SelectType
  35. echo Usage: "makebgi [s|t] clr {version}"
  36. echo Version defaults to BGI v2.0
  37. echo For example: to make the Tweaked-16 color driver (v2.0) enter: "makebgi t 16"
  38. echo              for BGI v3.0:  "makebgi t 16 3"
  39.  
  40. :Exit